<template>
  <div id="app">
    <div class="box">
      <!-- el-row: 行 -->
      <!-- el-col: 列,默认分成24列,通过 :span 控制自身所占的列数 -->
      <el-row class="box1">
        <el-col :span='8'>
          <div class="bg-yellow"></div>
        </el-col>
        <el-col :span='12'>
          <div class="bg-green"></div>
        </el-col>
      </el-row>
      <el-row class="box2" :gutter='40'>
        <el-col :span='4'>
          <div class="bg-yellow"></div>
        </el-col>
        <el-col :span='16'>
          <div class="bg-green"></div>
        </el-col>
        <el-col :span='4'>
          <div class="bg-yellow"></div>
        </el-col>
      </el-row>
      <el-row class="box3">
        <el-col :span='6' :offset='6'>
          <div class="bg-yellow"></div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
*{
  margin: 0;
  padding: 0;
}
.box1{
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
}
.bg-yellow{
  height: 60px;
  background-color: yellow;
}
.bg-green{
  height: 60px;
  background-color: green;
}
</style>